package com.yangxd.hospital.service.impl;

import com.yangxd.hospital.entity.Role;
import com.yangxd.hospital.mapper.RoleMapper;
import com.yangxd.hospital.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yangxd
 * @since 2021-04-24
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    /**
     * 根据roleId查询
     *
     * @param roleId
     * @return
     */
    @Override
    public Role selectByRoleId(Integer roleId) {
        return this.baseMapper.selectByRoleId(roleId);
    }
}
